package creation_patterns.prototype_pattern.simple_pattern.abstract_prototype;

public abstract class Prototype implements Cloneable{
    private String id;

    public Prototype(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Prototype clone(){
        Prototype prototype = null;
         try{
                 prototype = (Prototype)super.clone();
             } catch (Exception e) {
                 e.printStackTrace();
             }
         return prototype;
    }
    public abstract void show();
}
